package cn.bugDance.domain.award.repository;

import cn.bugDance.domain.award.model.aggregate.GiveOutPrizesAggregate;
import cn.bugDance.domain.award.model.aggregate.UserAwardRecordAggregate;
import cn.bugDance.domain.award.model.entity.UserAwardRecordEntity;
import cn.bugDance.domain.strategy.model.entity.AwardEntity;

import java.util.Date;
import java.util.List;

public interface IAwardRepository {
    void saveAwardRecord(UserAwardRecordAggregate userAwardRecordAggregate);

    AwardEntity queryAwardByAwardId(Integer award);

    void giveOutPrizes(GiveOutPrizesAggregate giveOutPrizesAggregate);

    List<UserAwardRecordEntity> queryUserAwardRecords(String userId);

    List<UserAwardRecordEntity> queryUserAwardRecordsToAll(Long activityId, Date nowDate);
}
